<template>
  <div id="Renting">
    <h3 class="h3">搜索历史</h3>
    <div class="Tagtxt">
      <p class="txt" v-show="fale">当前暂无历史数据</p>
    </div>
    <h3 class="h3">搜索发现</h3>
    <div class="Tag">
      <van-tag
        type="primary"
        size="large"
        color="#f3f3f3"
        class="biaoqian"
        text-color="#393939"
        v-for="time in answer"
        :key="time.id"
        >{{ time.name }}</van-tag
      >
    </div>
  </div>
</template>

<script>
import { mapState } from "vuex";
export default {
  name: "Renting",
  data() {
    return {
      fale: true,
    };
  },
  computed: {
    ...mapState(["answer"]),
  },
  created() {
    // console.log(this.answer);
    // console.log(this.$store);
  },
};
</script>

<style scoped>
.h3 {
  height: 0.45rem;
  line-height: 0.45rem;
  padding: 0 0.14rem;
  font-size: 0.15rem;
  color: #000;
  font-weight: 600;
  border-bottom: 0.01rem solid #fbfbfb;
}
.Tagtxt {
  min-height: 0.62rem;
  text-align: center;
}
.txt {
  font-size: 0.12rem;
  color: #cccccc;
  line-height: 0.4rem;
}
.Tag {
  padding: 0 0.1rem;
}
.biaoqian {
  margin: 0.05rem;
}
</style>
